package cn.edu.scau.cmi.linhongyu.singleton;

import javafx.fxml.FXML;

import javafx.scene.control.Button;

import javafx.scene.control.TextField;

import javafx.scene.control.TextArea;

public class SingletonController {
	@FXML
	private TextField input;
	@FXML
	private Button create;
	@FXML
	private TextArea msg;
	public void Event() {
		Chairman chairman = Chairman.getInstance(input.getText());
		String message = chairman.getName()+"@"+chairman.toString();
		msg.setText(msg.getText() +message);
		System.out.println(message);
	}
}